<template>
  <div>
    <a title="明细" @click="toView">{{ data.name }}</a>
  </div>
</template>
<script>
export default {
  components: { },
  props: {
    data: {
      type: Object,
      required: true
    },
    sup_this: {
      type: Object,
      required: true
    }
  },
  methods: {
    toView() {
      const _this = this.sup_this.$refs.form
      _this.initDataOfBefore()
      _this.viewMainData(this.data.id)
    }
  }
}
</script>

<style scoped>
  div{
    display: inline-block;
    margin-right: 3px;
  }
</style>
